package com.dq.Week1.day02;

import java.util.Scanner;

public class IfNextDemo {
    public static void main(String[] args) {

        String sex;
        System.out.println("请输入你的性别：");
        Scanner scanner = new Scanner(System.in);
        sex = scanner.next();
        if(sex.equals("女"))
        {
            System.out.println("请输入你的年龄：");
            int age = scanner.nextInt();

            if(age<18)
            {
                System.out.println("请在3月7号休假，过女生节");
            }else if(age<40)
            {
                System.out.println("请在3月8号休假，过女神节");
            }else{
                System.out.println("请在3月8号之后休假，过妇女节");
            }
        }else{
            System.out.println("好好工作");
        }
    }
}
